package org.jsola.hr.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.jsola.core.dto.BaseDTO;

import javax.validation.constraints.NotNull;

/**
 * @author wcl
 */
@EqualsAndHashCode(callSuper = true)
@ApiModel(description = "新建【员工动态表单字段】的参数")
@Data
public class AddEmpFieldDTO extends BaseDTO {

    @ApiModelProperty(notes = "自定义字段id")
    @NotNull(message = "自定义字段id不能为空")
    private Long id;

    @ApiModelProperty(notes = "字段id")
    @NotNull(message = "字段id")
    private Long fieldId;

    @ApiModelProperty(notes = "自定义字段值")
    private String content;

    @ApiModelProperty(notes = "自定义字段名称")
    @NotNull(message = "自定义字段名称不能为空")
    private String fieldName;

    @ApiModelProperty(notes = "模块code")
    private String moduleCode;

}
